<?php
namespace api\action\signup;

use Yii;
use yii\data\ActiveDataProvider;
use yii\rest\CreateAction as BaseCreateAction;
use yii\data\DataFilter;
use yii\base\Event;
use api\common\models\Signup;

class CreateAction extends BaseCreateAction
{
    public function init()
    {
        parent::init();
        Event::on(Signup::className(), Signup::EVENT_AFTER_INSERT, [$this, 'sendSms']);
    }

    /**
     * 添加成功后发送短信
     */
    public function sendSms($event)
    {
        // TODO
    }

}
